Optimal. Leaf size=61 \[ \frac {2}{\left (b^2-4 a c\right ) d^2 (b+2 c x)}-\frac {2 \tanh ^{-1}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right )}{\left (b^2-4 a c\right )^{3/2} d^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 61, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {707, 632, 212}
\begin {gather*} \frac {2}{d^2 \left (b^2-4 a c\right ) (b+2 c x)}-\frac {2 \tanh ^{-1}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right )}{d^2 \left (b^2-4 a c\right )^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 632
Rule 707
Rubi steps
\begin {align*} \int \frac {1}{(b d+2 c d x)^2 \left (a+b x+c x^2\right )} \, dx &=\frac {2}{\left (b^2-4 a c\right ) d^2 (b+2 c x)}+\frac {\int \frac {1}{a+b x+c x^2} \, dx}{\left (b^2-4 a c\right ) d^2}\\ &=\frac {2}{\left (b^2-4 a c\right ) d^2 (b+2 c x)}-\frac {2 \text {Subst}\left (\int \frac {1}{b^2-4 a c-x^2} \, dx,x,b+2 c x\right )}{\left (b^2-4 a c\right ) d^2}\\ &=\frac {2}{\left (b^2-4 a c\right ) d^2 (b+2 c x)}-\frac {2 \tanh ^{-1}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right )}{\left (b^2-4 a c\right )^{3/2} d^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 63, normalized size = 1.03 \begin {gather*} \frac {\frac {2}{\left (b^2-4 a c\right ) (b+2 c x)}-\frac {2 \tan ^{-1}\left (\frac {b+2 c x}{\sqrt {-b^2+4 a c}}\right )}{\left (-b^2+4 a c\right )^{3/2}}}{d^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.74, size = 62, normalized size = 1.02
method | result | size |
default | \(\frac {-\frac {2}{\left (4 a c -b^{2}\right ) \left (2 c x +b \right )}-\frac {2 \arctan \left (\frac {2 c x +b}{\sqrt {4 a c -b^{2}}}\right )}{\left (4 a c -b^{2}\right )^{\frac {3}{2}}}}{d^{2}}\) | \(62\) |
risch | \(-\frac {2}{\left (4 a c -b^{2}\right ) d^{2} \left (2 c x +b \right )}+\left (\munderset {\textit {\_R} =\RootOf \left (1+\left (64 d^{4} a^{3} c^{3}-48 b^{2} d^{4} c^{2} a^{2}+12 b^{4} d^{4} c a -b^{6} d^{4}\right ) \textit {\_Z}^{2}\right )}{\sum }\textit {\_R} \ln \left (\left (\left (384 c^{4} d^{4} a^{3}-288 b^{2} c^{3} d^{4} a^{2}+72 a \,b^{4} c^{2} d^{4}-6 b^{6} c \,d^{4}\right ) \textit {\_R}^{2}+4 c \right ) x +\left (192 b \,c^{3} d^{4} a^{3}-144 b^{3} d^{4} c^{2} a^{2}+36 a \,b^{5} c \,d^{4}-3 b^{7} d^{4}\right ) \textit {\_R}^{2}+\left (16 a^{2} c^{2} d^{2}-8 a \,b^{2} c \,d^{2}+b^{4} d^{2}\right ) \textit {\_R} +2 b \right )\right )\) | \(225\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 118 vs.
\(2 (57) = 114\).
time = 1.79, size = 256, normalized size = 4.20 \begin {gather*} \left [-\frac {\sqrt {b^{2} - 4 \, a c} {\left (2 \, c x + b\right )} \log \left (\frac {2 \, c^{2} x^{2} + 2 \, b c x + b^{2} - 2 \, a c + \sqrt {b^{2} - 4 \, a c} {\left (2 \, c x + b\right )}}{c x^{2} + b x + a}\right ) - 2 \, b^{2} + 8 \, a c}{2 \, {\left (b^{4} c - 8 \, a b^{2} c^{2} + 16 \, a^{2} c^{3}\right )} d^{2} x + {\left (b^{5} - 8 \, a b^{3} c + 16 \, a^{2} b c^{2}\right )} d^{2}}, -\frac {2 \, {\left (\sqrt {-b^{2} + 4 \, a c} {\left (2 \, c x + b\right )} \arctan \left (-\frac {\sqrt {-b^{2} + 4 \, a c} {\left (2 \, c x + b\right )}}{b^{2} - 4 \, a c}\right ) - b^{2} + 4 \, a c\right )}}{2 \, {\left (b^{4} c - 8 \, a b^{2} c^{2} + 16 \, a^{2} c^{3}\right )} d^{2} x + {\left (b^{5} - 8 \, a b^{3} c + 16 \, a^{2} b c^{2}\right )} d^{2}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 240 vs.
\(2 (56) = 112\).
time = 0.48, size = 240, normalized size = 3.93 \begin {gather*} - \frac {2}{4 a b c d^{2} - b^{3} d^{2} + x \left (8 a c^{2} d^{2} - 2 b^{2} c d^{2}\right )} + \frac {\sqrt {- \frac {1}{\left (4 a c - b^{2}\right )^{3}}} \log {\left (x + \frac {- 16 a^{2} c^{2} \sqrt {- \frac {1}{\left (4 a c - b^{2}\right )^{3}}} + 8 a b^{2} c \sqrt {- \frac {1}{\left (4 a c - b^{2}\right )^{3}}} - b^{4} \sqrt {- \frac {1}{\left (4 a c - b^{2}\right )^{3}}} + b}{2 c} \right )}}{d^{2}} - \frac {\sqrt {- \frac {1}{\left (4 a c - b^{2}\right )^{3}}} \log {\left (x + \frac {16 a^{2} c^{2} \sqrt {- \frac {1}{\left (4 a c - b^{2}\right )^{3}}} - 8 a b^{2} c \sqrt {- \frac {1}{\left (4 a c - b^{2}\right )^{3}}} + b^{4} \sqrt {- \frac {1}{\left (4 a c - b^{2}\right )^{3}}} + b}{2 c} \right )}}{d^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 117 vs.
\(2 (57) = 114\).
time = 1.19, size = 117, normalized size = 1.92 \begin {gather*} \frac {2 \, c^{2} d^{3}}{{\left (b^{2} c^{2} d^{4} - 4 \, a c^{3} d^{4}\right )} {\left (2 \, c d x + b d\right )}} - \frac {2 \, \arctan \left (-\frac {\frac {b^{2} d}{2 \, c d x + b d} - \frac {4 \, a c d}{2 \, c d x + b d}}{\sqrt {-b^{2} + 4 \, a c}}\right )}{{\left (b^{2} - 4 \, a c\right )} \sqrt {-b^{2} + 4 \, a c} d^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.50, size = 115, normalized size = 1.89 \begin {gather*} \frac {2\,\mathrm {atan}\left (\frac {b^3\,d^2-4\,a\,b\,c\,d^2}{d^2\,{\left (4\,a\,c-b^2\right )}^{3/2}}+\frac {2\,c\,x\,\left (b^2\,d^2-4\,a\,c\,d^2\right )}{d^2\,{\left (4\,a\,c-b^2\right )}^{3/2}}\right )}{d^2\,{\left (4\,a\,c-b^2\right )}^{3/2}}-\frac {2}{\left (4\,a\,c-b^2\right )\,\left (b\,d^2+2\,c\,d^2\,x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________